package com.borya.constant;

import com.borya.util.Constant;

public class SystemConstant {

    /***终端类型-安卓***/
    public static final String TERMINAL_ANDROID = "1";
    /***终端类型-iOS***/
    public static final String TERMINAL_IOS = "2";

    /***证件类型--身份证***/
    public static final String PAPERSTYPE_IDCARD = "1";

    /***操作类型--开空卡***/
    public static final int OPERATE_OPEN_EMPTY_CARD = 1;

    /***身份证信息录入模式，扫描录入***/
    public static final int OPEN_MODE_SCANNER = 1;

    public interface Kafka {
        //#Kafka的配置(服务器ip:端口号,集群用逗号分隔)
        public String BOOTSTRAP_SERVERS = Constant.BOOTSTRAP_SERVERS;
        //#Kafka的topic(consumer的group.id)
        public String TOPIC = Constant.TOPIC;

        /**
         * 发送短信存储
         **/
        public String MSG_STORE = "msg_store";
    }

    public interface Sdk {
        String API_PATH = "sdk";
        String API_METHOD_REGISTER = "register";
        String API_METHOD_LOGIN = "login";
        String API_METHOD_LOGIN_CODE = "getLoginCode";
        String API_METHOD_CHECK = "check";
        String API_METHOD_UPLOAD_REGISTER_IMAGE = "uploadRegisterImg";
        String API_CLIENT_ROOT_PATH = "/c/" + API_PATH + "/";
        String API_REGISTER = API_CLIENT_ROOT_PATH + API_METHOD_REGISTER;
        String API_LOGIN = API_CLIENT_ROOT_PATH + API_METHOD_LOGIN;
        String API_LOGIN_CODE = API_CLIENT_ROOT_PATH + API_METHOD_LOGIN_CODE;
        String API_CHECK = API_CLIENT_ROOT_PATH + API_METHOD_CHECK;
        String API_UPLOAD_REGISTER_IMAGE = API_CLIENT_ROOT_PATH + API_METHOD_UPLOAD_REGISTER_IMAGE;

        interface JsonKeys{
            String JSON_KEY_DETAIL_TYPE = "sdk_detailType";
            String JSON_KEY_DEALER_ID = "sdk_dealerId";
            String JSON_KEY_DEALER_NAME = "sdk_dealerName";
            String JSON_KEY_POP_CHANNEL = "sdk_popChannel";
            String JSON_KEY_POP_CHANNEL_NAME = "sdk_popChannelName";
            String JSON_KEY_QUERIED_USER="sdk_queriedUser";
            String JSON_KEY_QUERIED_MERCHANT="sdk_queriedMerchant";
        }

        interface SignStatus {
            int STATUS_UNDER_VIEW = 0;
            int STATUS_REJECT = 1;
            int STATUS_SIGNED = 2;
        }

        interface ImageType {
            int TYPE_ID_CARD_FRONT = 1;
            int TYPE_ID_CARD_BACK = 2;
            int TYPE_ID_CARD_HAND = 3;
            int TYPE_BUSINESS_LICENSE = 4;
            int TYPE_SIGNATURE = 5;
            int TYPE_AVATAR = 6;
        }
    }

}
